package org.rcy.ruicingmarket.gateway.config;

import org.rcy.ruicingmarket.gateway.filter.KeyPairFilterGatewayFilterFactory;
import org.rcy.ruicingmarket.gateway.filter.AddRequestContextGatewayFilterFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/10/13 11:54
 */

@Configuration
public class FilterAutoConfiguration {
	@Bean
	public KeyPairFilterGatewayFilterFactory addKeyPairFilterFactory(){
		return new KeyPairFilterGatewayFilterFactory();
	}

	@Bean
	public AddRequestContextGatewayFilterFactory addRequestContextFilterFactory(){
		return new AddRequestContextGatewayFilterFactory();
	}
}
